import request from '@/utils/request'

export function getZoneList(params) {  //  获取区域定义列表接口
  return request({
    url: '/zone/list',
    method: 'get',
    params
  })
}

export function createZone(params) {  //新增区域定义
  return request({
    url: '/zone/insert',
    method: 'post',
    data: params
  })
}

export function updateZone(params) {  //  更新区域定义
  return request({
    url: '/zone/update',
    method: 'post',
    data: params
  })
}

export function deleteZone(params) {  //删除区域定义
  return request({
    url: '/zone/delete',
    method: 'post',
    params
  })
}
